function createLink(content){
    for(var i=0;i<content.length;i++){
        let type = content[i].linkType.toLowerCase();
        let startId = viewer.entities.getById(content[i].startNode);
        let endId = viewer.entities.getById(content[i].endNode);

        if(startId&&endId){
            ikf(!viewer.entities.getById(content[i].linkID)){
                if(type == "satcom"){//卫星链路
                    viewer.entities.add({
                        id:content[i].linkID,
                        name:content[i].linkName,
                        polyline:{
                            positions:new Cesium.CallbackProperty(function (time,result){
                                let sp = startId.positions.getVale(time);
                                let ep = endId.positions.getVale(time);
                                if(sp&&ep){
                                    return [sp,ep]
                                }
                            },false),
                            width:5,
                            material:new Cesium.PolylineDashMaterialProperty({
                                colod:Cesium.Color.BLUE.withAlpha(0.5)
                            })
                        }
                    })
                }else if(type=="hf"){
                    viewer.entities.add({
                        id:content[i].linkID,
                        name:content[i].linkName,
                        polyline:{
                            positions:new Cesium.CallbackProperty(function (time,result){
                                let sp = startId.positions.getVale(time);
                                let ep = endId.positions.getVale(time);
                                if(sp&&ep){
                                    return [sp,ep]
                                }
                            },false),
                            width:5,
                            material:new Cesium.PolylineDashMaterialProperty({
                                colod:Cesium.Color.WIITE.withAlpha(0.5)
                            })
                        }
                    })
                }
            }
        }
    }
}